We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13428 ☆ A M B ☆
    • 1,031 Posts
    Hi Emanuel,

    Think using $modx->getObject('modResource', array('id' => $id )); in OnWebPageInit somehow triggers not to use the cache.

    If the Revo Order of Execution is almost the same as in Evo (http://wiki.modxcms.com/index.php/Order_of_execution) you could call the plugin later in on OnWebPagePrerender without having caching issues. It would be somehow less effective but it could maybe solve the issue.
      • 18174
      • 116 Posts
      Thanks Jako,

      Looking at your order_of_execution I suppose also that it's just to early to retrieve/render TV values on webPageInit. But I'm still buzzled because I'm pretty sure this worked in 2.2.7.

      Tadaa!!:Hook the plugin on webPagePrerender (and change the plugin code accordingly, thx Michelle) and everything works! It's probabely not even an big overhead (with revoSSL), the 1st pagecall writes the cache (if not cached yet) and then be redirected to SSL. The 2nd (https) call retrieves its content from the cache.
      best regards
      manu [ed. note: manu37 last edited this post 12 years, 7 months ago.]
        • 19328
        • 433 Posts
        Hi Manu, I was having trouble with RevoSSL as well, it slowed the site down quite a bit. So I tried your suggestion to hook it to onWebPagePrerender. For me, there is no redirection to https anymore when I do this, it's like nothing happens. Do you have this working?

        EDIT:
        never mind, I forgot to change the event in the plugin code itself. Sorry!