Re: Cache system do not work
Hi admin will cache system work in next version???? :roll:
Re: Cache system do not work
My cache system is working...at least I think it is...there's a ton of files in the templates_c directory...which means cache is working, yes?
Re: Cache system do not work
No is not that. You are saying the basic cache system that include the basic pages.
When you go to include/smarty/libs/Smarty.class.php is this code.
Code:
/**
* This enables template caching.
* <ul>
*[*]0 = no caching
*[*]1 = use class cache_lifetime value
*[*]2 = use cache_lifetime in cache file
*[/list]
* @var integer
*/
var $caching = 0;
/**
* The name of the directory for cache files.
*
* @var string
*/
var $cache_dir = 'cache';
This is the cache system that include all pages.
Re: Cache system do not work
wouldn't changing the var caching value (which is currently set to =0) to 1 or 2 turn it on according to the comments?
1 = use class cache_lifetime value
2 = use cache_lifetime in cache file
and then change the cache directory to templates_c instead of "cache"?
var $cache_dir = 'templates_c';
Re: Cache system do not work
Well, I changed the var to 1 and 2, and created a directory called "cache" and changed the var $cache_modified_check = true; to var $cache_modified_check = false;
There are pages cached in the "cache" directory, even though there is a smarty error at the bottom of the page....only problem is I didn't check the cache directory to see what setting did it. I'll start over from scratch..make one change and then check the cache directory to see what's putting cached pages in it.
UPDATE:
ok...changed it to "1" and there were 4 cached paged in the "cache" directory even though there was a smarty error at the bottom of the view_video page and NOW I understand what you mean by the banners....the position for the top_advert gets messed up and the banner for the top which normally appears above the "featured videos" and under the "submenu" appears at the very top of all pages. On the index page, the top_advert banner appears at the top and also at the lower right of the main layout with the tags out of their respective box and below the misaligned banner as if it's screwing up right.tpl.
On the view_video page, there's a date that appears to the right and just above the video title where the player is and a smarty error under the comments section. The top_advert appears at the very top of the page and the footer banner is aligned properly.
Interesting stuff to say the least.
If anybody wants to see what this is doing, visit my testing grounds at http://vshare-mods.com
Re: Cache system do not work
Quote:
Originally Posted by grynmoors
Interesting stuff to say the least.
At http://vshare-mods.com you have not created a "cache" at the main directory.
Yes it is. Is one of the main things that need to be fixed in the next version because this mode gives more speed to the script.
There are also other problems.
- No rating
No tags
Ho Channel
header.tpl is the same in every page
Banner change place
Re: Cache system do not work
Yes, it says I didn't create a 'cache' directory even though it DOES exist.
Also, you'll notice on the index page, right above where it has the "watch/share/upload" box... you'll see this really weird date thing.
Re: Cache system do not work
Yes. i have deleted that at my site also i have made frame banners and there is no problems with the banners. But the main problem is the header.tpl that is the same same and video rating
Re: Cache system do not work
That's what I was thinking too...creating divs for the banner and just bypass the banner thing in the admin panel all together..how did you get rid of the weird date thing?
...and something else...the polls get broken returning a smarty error!