• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Script Bug | Likes not showing on the page

Started by rishab55555,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rishab55555Topic starter

Hello,

Just found one new bug, when you click the like button on video it is being "Liked" but the total likes/ Unlikes (Thumbs up or down) counter is not showing anything.

Refreshing/ clearing cache doesn't helps either.

Please check. Screenshot attached.

Website url : www.placevid.com
  •  

marius20foc

  •  

PHPVibe A.


marius20foc

Personally, I have some errors, but not related(feed.php and rss.class.php related)
  •  

PHPVibe A.

Would be lib/ajax/ related.

You guys are sure the cache files get collected? If the server has initial permissions restrictive they may not get collected.
I've tested on the demo and on my sites, when I click like and clear cache the like gets counted.
http://www.videoinedit.com/video/5777/2-fast-2-furious-2003-720p-mp4/

marius20foc

+1 . clearing cache from admin-->tools does the job.
those likes were counted for in admin statistics even without cleaning cache.

Thanks
  •  

PHPVibe A.

Cache holds for 5 hours if not cleared, then expires and it's refreshed, this is to keep server load as small as possible.

rishab55555Topic starter

Quote from: Alexander on
Cache holds for 5 hours if not cleared, then expires and it's refreshed, this is to keep server load as small as possible.

Keeping such things cached is kind of funny ? People will like the videos and wait for the admin to clear the cache.
I hope youtube API has some better options to make this automated ?
  •  

PHPVibe A.

Quote from: rishab55555 on
Keeping such things cached is kind of funny ? People will like the videos and wait for the admin to clear the cache.
I hope youtube API has some better options to make this automated ?

This has nothing to do with Youtube api.

You can change on line 9 of com/com_video.php

$video = $cachedb->get_row


to

$video = $db->get_row


but I assure you your load will go up since the video page's video details will no longer be pulled from cache.

In my case and most clients which have heavy traffic this change would put down a very good server.
I'm pretty sure an normal user will not refresh to see the like...the like button turns green, the notification shows up, the video like is accounted on his profile and on his followers feeds, don't really see a reason for an user to notice this at all.

fourdeltaOne

1 can reduce execution time cache ?
2 how to prevent liked your comments?
Skype: epic.mediauz
  •  

PHPVibe A.

1.
load.php

$cachedb->cache_timeout = 3; //Note: this is hours


2. It's an issue we are looking into.

Similar topics (7)