• Resolved kmentis

    (@kmentis)


    Hello, I recently installed your plugin mainly because of the ‘use_cache=”no”‘ ability.

    The code is embeded in a sidebar field like this:

    [gdoc key="https://docs.google.com/spreadsheets/d/1ib7GmQKLaSG5823LfMePZwiMbz7asM6ptz_bNiQ5AGs/pubhtml" use_cache="no" query="SELECT A, B ORDER BY A, B"]

    My problem is that although the data is supposed to be renewed every time someone opens up the page, it stays the same for a while, or until I actually clear the page’s cache and the browser’s cookies. Is it a problem with my website’s caching system, or have I overlooked something?

    Thank you in advance! 🙂

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Meitar

    (@meitar)

    Hm. What data is supposed to change in that spreadsheet?

    To be clear, the plugin’s cache is not the same thing as other caches that might exist, such as the Web browser cache, an HTTP cache between your website and Google.com, or a cache of your website that you might have installed such as with the WP Super Cache plugin. These caches might exist and be serving your page even if this plugin’s own cache has been disabled. Be sure you’re not accidentally hitting one of these caches, too.

    That said, if the spreadsheet data has not changed in Google Drive, then whether or not there is a cache will not matter with respect to what you see, because the response from Google will contain the same data as any cached data contains anyway. 😉

    Thread Starter kmentis

    (@kmentis)

    All of it changes dynamicaly, via a script that is run on a second spreadsheet and since I want it to update immediately (or at least sooner rather than later) I thought the plugin option was a good idea.

    I guess since it can’t be the plugin’s cache it is probably the doings of the W3 Total Cache plugin I have installed.

    Anyway, thank you for your fast reply! Keep up the good work! 🙂

    Plugin Author Meitar

    (@meitar)

    Ah, I understand. Yeah, I saw the same behavior you describe with the WP Super Cache plugin but that plugin has an option to not serve cached pages to logged in users, so when I logged in I saw instant updates. The lesson is that each cache is its own additional layer of indirection. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with use_cache’ is closed to new replies.