Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-05-28 18:20:35

MS_DA
Member
Registered: 2011-04-26
Posts: 401
Website

BEING WATCHED FREE PORN VIDEOS updates

I noticed right now that the BEING WATCHED FREE PORN VIDEOS updates in a confusing way... If you click the "refresh" button of this part itself it shows other clips then refreshing the index page lol ...

Ben

Offline

#2 2011-05-28 19:25:28

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: BEING WATCHED FREE PORN VIDEOS updates

Uhm do you have apc cache enabled ?


sgt-halfsize-banner.jpg

Offline

#3 2011-05-28 20:21:59

MS_DA
Member
Registered: 2011-04-26
Posts: 401
Website

Re: BEING WATCHED FREE PORN VIDEOS updates

Yepp I did lol

Offline

#4 2011-05-28 20:27:10

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: BEING WATCHED FREE PORN VIDEOS updates

Yeah, the cache for being watched videos is shorter than the cache for latest videos


For being watched videos it is 900 seconds:

if (!$watched = $this->cache->get($sql, 900))

For latest videos it is 3600 seconds:

if (!$videos = $this->cache->get($sql, 3600))

You may change that by editing /modules/frontpage/frontpage.php

just do a search for the code snippets i quoted above.

Last edited by Coscast (2011-05-28 20:29:03)


sgt-halfsize-banner.jpg

Offline

#5 2011-05-28 20:35:50

MS_DA
Member
Registered: 2011-04-26
Posts: 401
Website

Re: BEING WATCHED FREE PORN VIDEOS updates

Cool tongue

Many thanks big_smile

Offline

#6 2011-05-28 20:44:04

MS_DA
Member
Registered: 2011-04-26
Posts: 401
Website

Re: BEING WATCHED FREE PORN VIDEOS updates

Well I changed it - both are 900 now... Cleared the cache in the acp and my browser cache... Then hard refreshed but still the same different result.

Offline

#7 2011-05-28 21:27:53

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: BEING WATCHED FREE PORN VIDEOS updates

Ok. What happens if you refresh a second time ?
First refresh: Refresh
Second Refresh: Nothing happens.

This is for being watched videos.


Same for you?

IF you want to have them both refreshed at the same time: Just adjust the times. Example: BOTH @ 900 Seconds.

But this is not an error or something. Cache works well.

Last edited by Coscast (2011-05-28 21:32:15)


sgt-halfsize-banner.jpg

Offline

#8 2011-05-28 21:49:23

MS_DA
Member
Registered: 2011-04-26
Posts: 401
Website

Re: BEING WATCHED FREE PORN VIDEOS updates

Well i set both to @ 900 Seconds - refreshing the index page shows other BEING WATCHED FREE PORN VIDEOS then using it´s one refresh.  It´s just funny if you play with this several times lol .

Offline

#9 2011-05-28 21:55:06

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: BEING WATCHED FREE PORN VIDEOS updates

Yeah, but you have to know that this time is relative to the time you have watched that video.
And additionally: YOU are not alone watching teh videos on your site. So just think about someone on your site that watches videos too ....

So, that is no bug. Your Site is doing well.


sgt-halfsize-banner.jpg

Offline

#10 2011-05-29 08:22:32

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: BEING WATCHED FREE PORN VIDEOS updates

If you have RC2 and you updated correctly. It should show the same videos. Do you have the following lines:

SELECT video_id, title, slug, rating, rated_by, duration, thumb, thumbs,
             total_views, ext, add_time
FROM #__video
WHERE status = 1
ORDER BY view_time DESC
LIMIT 8

in both modules/frontpage/frontpage.php and templates/your-template/extend/ajax/watched.plugin.php?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#11 2011-05-29 12:54:04

MS_DA
Member
Registered: 2011-04-26
Posts: 401
Website

Re: BEING WATCHED FREE PORN VIDEOS updates

Yupp i have RC2.

In templates/your-template/extend/ajax/watched.plugin.php i have

$db->query('SELECT video_id, title, slug, rating, rated_by, duration, thumb, thumbs,
                       total_views, add_time
                FROM #__video
                ORDER BY view_date DESC
                LIMIT 8');

I changed this now and it´s fine tongue

Many Thanks Adrian big_smile

Last edited by MS_DA (2011-05-29 13:00:41)

Offline

Board footer

Powered by FluxBB