[resolved] Ajaxized boxes returning "-1" after period of time (3 posts)

  1. joshuaiz
    Posted 2 years ago #

    I'm using Ajaxize with WP Super Cache to ajaxize some custom wp_query functions. After a few hours, the ajaxed divs just show a "-1" where the content should be.

    First, what does the "-1" mean?

    I'm using WP Super Cache so I'm wondering if this happens once super cached files are generated. This is with WP Super Cache 1.4. I'm not using the dynamic content function, relying on Ajaxize to keep the content dynamic.

    Second, how can I fix this?

    Third, is there a way to change the "-1" to a custom message? E.g.: "Nothing to display right now, please check again later."



  2. yoav.aner
    Plugin Author

    Posted 2 years ago #

    I think the -1 is a result of the csrf token becoming invalid after 12 or 24 hours or so. It's not a message that ajaxize returns, but rather something coming back from wordpress. If you make sure you don't cache for so long, this should resolve this problem.

  3. yoav.aner
    Plugin Author

    Posted 2 years ago #

    Closing this for now. Let me know if you have any further questions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ajaxize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic