Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Cache system do not work

  1. #1
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default Cache system do not work

    Has someone edit the file "include/smarty/libsSmarty.class.php" and has enabled the cache system :?:
    Because cache system do not work, it wont show the video rating, the video tags, the video user and much more things that shows if the cache system is disabled. Also the banners are in a different place. :(
    This is one of the basic thing that have to be improved in the next version because without cache system the script need a very powerful server and this cost money. :(

    Is there someone that using cache system and work 100%. :?: :?:

  2. #2
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default Re: Cache system do not work

    Hi admin will cache system work in next version???? :roll:

  3. #3
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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?
    If it's not fun, stop doing it!

  4. #4
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default 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.

  5. #5
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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';
    If it's not fun, stop doing it!

  6. #6
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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
    If it's not fun, stop doing it!

  7. #7
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default 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

  8. #8
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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.
    If it's not fun, stop doing it!

  9. #9
    Join Date
    Feb 2008
    Location
    Greece
    Posts
    235

    Default 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

  10. #10
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default 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!
    If it's not fun, stop doing it!

Page 1 of 2 12 LastLast

Similar Threads

  1. Rating system/?
    By k3lvin in forum Template Modifications
    Replies: 4
    Last Post: 04-02-2011, 04:49 AM
  2. Point System
    By Anthony in forum Feature Requests
    Replies: 24
    Last Post: 02-03-2011, 04:21 AM
  3. Plugin System
    By nitramf in forum Feature Requests
    Replies: 1
    Last Post: 06-16-2009, 06:19 PM
  4. [add-on] Advert system - Only $15!
    By pepio in forum Template Modifications
    Replies: 28
    Last Post: 07-20-2008, 04:28 PM
  5. I have a problem, vshare script have a cache in server???
    By joako30 in forum General Discussions
    Replies: 1
    Last Post: 08-13-2007, 09:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •