Results 1 to 4 of 4

Thread: Plugin Caching

  1. #1
    Join Date
    Oct 2007
    Location
    UK Essex
    Posts
    591

    Default Plugin Caching

    Im working on a plugin that would randomly display links and images from a control file in the index.html but I think indexu is caching the script ?

    So whatever the plugin randomly displays 1st, stays untill you either


    • disable / enable the plugin
    • clear the template cache
    Does anyone know a bit more about the plugin system and why it might do this?
    ____________________________
    http://www.articleconveyer.com
    Give Your Articles Exposure



  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Dont we have the ability to set the cache time in the Admin section??? Is it possible to just disable the caching?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Nov 2007
    Posts
    227

    Default

    echo

    I will look at the pm you sent me tomorrow when I get off work. Until then, I might be able to help you with what I think you are trying to do. There may be a better way of doing it and I will look into that later, for now this might help.

    In smarty you can force the script to recompile a single html file each time it's called.

    Code:
    <?php
    // clear a specific compiled template
    $smarty->clear_compiled_tpl("index.html");
    ?>
    Regards
    Wayne
    For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    The plugin is cached to lower CPU cycles from having to repeat the same task over and over.

Similar Threads

  1. Site caching
    By azul in forum v5.x
    Replies: 12
    Last Post: 02-16-2008, 08:03 PM
  2. Page Caching
    By spin in forum v5.x
    Replies: 0
    Last Post: 05-18-2007, 05:48 PM

Posting Permissions

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