We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51347
    • 82 Posts
    Hello Forum,

    i have again a question about the PDO-Tools.

    It is possible to cache the pdoPage with RAND() for some Time (14 Hours)?

    [[!pdoPage? &parents=`2` &sortby=`RAND()` &tpl=`mytpl` &limit=`20`]]
    [[!+page.nav]]

    My htaccess
    <IfModule mod_expires.c>
     ExpiresActive On
     ExpiresByType text/css "access plus 6 hours"
     ExpiresByType text/javascript "access plus 14 hours"
     ExpiresByType text/html "access plus 14 hours"
     ExpiresByType application/javascript "access plus 14 hours"
    </IfModule>



    Edit: if i use pdoPage without "!", i get the same cached result in all Pages (page.nav).
    [[pdoPage? &parents=`2` &sortby=`RAND()` &tpl=`mytpl` &limit=`20`]]
    [[+page.nav]]
    [ed. note: joe-petts last edited this post 10 years, 2 months ago.]