Enable JS cache broke my site. Help, please.

Hello,

The question is that when I turn on the cache for the JS files, some things does not work correctly in my site. For example the Tinymce editor does not appear in the compose mail page. (If I disable the JS cache from the admin's panel this works OK)

Other thing, (and this happens with the JS cache on or not) is that the options menu of the extra top menu sometimes are showing and sometimes not, I need to refresh the page for to see the options menu of the member bar again.

Can anyone help me, please?

I attached some evidencices.


My site is: https://badulake.net
user: lima
pass:lima123

Thanks in advance.

Best Regards.

evidence1.jpg · 373K · 153 views
evidence2.jpg · 387.2K · 139 views
evidence3.jpg · 355.9K · 141 views
Quote · 6 Jan 2015

you use a bsetec template don't you? if so...
the cache and js don't work properly on those templates

also, in the readme file it says to turn off js and cache. but if you do then some other modules will not work the way they should.

Quote · 6 Jan 2015

As said, simply keep the CSS and JavaScript cache and compression options turned off. For the second issue with the member menu, are you using a cache handler other than File/FileHtml? I've seen this happen when the database and member menu cache handlers are set to XCache or APC. The solution is to switch them both to File. I'm not sure why this happens.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 6 Jan 2015

Hello,

First of all, thanks for reply!

I am using a Hypernova template from mastertheme and they dont say anything about the cache of JS.
Moreover they say that:
"4- Admin Panel > Tools > Cache > Enable cache for CSS files: active
Other Caches are Optional ( js, html etc. )
!!! WARNING : if css cache isn't active, template won't work fine for IE9."

I had set ACP cache engine in all options of the admin panel, but after read your coments, I set a memcache engine and the problems from the menu bar dissapears! Thanks! :D

I want to keep my site optimized. Can you suggest anything for to solve the problem with the Tinyemc?

I attach new evidences.
Thanks in advance.

Regards.

evidence4.jpg · 371.1K · 142 views
evidence5.jpg · 402.3K · 154 views
Quote · 6 Jan 2015

Yes. The suggestion is to leave JS caching off.

It simply does not work 100% in all configurations. There is no solving it. If it works it works, if it don't, then it don't. Thats just the way it is. Not all JS can be cached/compressed. And sometimes the server itself prevents it from working properly.

https://www.deanbassett.com
Quote · 6 Jan 2015

Hello,

Thanks for your reply, as you say it seems that the programation has a misteries without resolution, jjjj... (dont  misunderstand my words please) but I dont think so.

But no problem, If I cant run Tinyemc OK in the email compose page, I preffer to eliminate this pluging because is the only page where is used it and the cache of the JS is used in all the site. So, Is there any way to eliminate this pluging from this page and use simple text only?


Thanks in advance.
Regards.

Quote · 6 Jan 2015

It seems like you're putting more work into this than is required. Simply keeping those two options off will resolve this, and there isn't really a performance hit from it, especially on smaller sites. I've never seen a site break because those options are turned off.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 6 Jan 2015

Hello Nathan,

You have all the reason but (and sorry to insist) Is there any way to eliminate this pluging from this page and use simple text only?

Thanks.

Quote · 6 Jan 2015

The answer here is to leave JS caching turn off; if it is causing issues in one place it could very well cause issues in other places.  We have told you that compressing JS really does not increase the performance that much.  There is no real need to turn JS compression on.  If it is causing problems, then we are telling you to turn it off.  We are telling you to turn off JS caching and be happy.  Why do you insist that you must turn on JS caching when the best and brightest of Dolphin are telling you to turn it off.  Listen to Nathan and Deano, they have many here many years and they know Dolphin; as well as solusoft and me telling you.  Again, turn off JS caching and be happy; that is our answer to you; turn off JS caching and be happy.

Geeks, making the world a better place
Quote · 6 Jan 2015

I appreciate all your responses and I am very grateful.

But the question know is how to prescind from the TinyMCE... It is that possible? Can anyone help me please?

If this is not the original topic I can open a new one.

And geek_girl keep calm, please.

Thanks again.

Regards.

Quote · 6 Jan 2015

 

 


And geek_girl keep calm, please.

 

 

 

 

 

 

I guess we just find it strange that you stated turning on JS caching caused issues with your site but you still insist on turning it on.

Geeks, making the world a better place
Quote · 7 Jan 2015

If you know read you can understand that now I'm not speaking about the JS cache.

Now I am posting the question for to leave the composer without the TinyMce.

Anyway, I do not understand why BoonEx makes available to administrators a function for caching JS and when this fault (in this case is my site but in the future is possible in other) and the solution is to remove it and not see how to fix it.

Thanks for your sense of humor.

Regards.

Quote · 7 Jan 2015

 

in this case is my site but in the future is possible in other


What do you mean in the future possibly others?

It has already happened to hundreds of other sites. Hence the reason we know it does not always work on every site configuration. Which is also a reason why it's a option that makes it easy to turn off.

Tinymce has so such easy turn off option.

https://www.deanbassett.com
Quote · 7 Jan 2015

Hello Deano,

Thanks for the info.

Where is that option for the Tiny editor?

Regards.

Quote · 7 Jan 2015

 

Where is that option for the Tiny editor?


If you look at my above post again, i stated that "Tinymce has so such easy turn off option." To rephrase. TinyMCE does not have a option to turn it off.

Instead you edit templates/base/mail_box_compose_message.html and look for this line.

<textarea id="compose_message" class="story_edit_area"></textarea>

Remove the id tag from it so it looks like this

<textarea class="story_edit_area"></textarea>

That will stop the tinymce editor from binding to it.

NOTE: if your custom template has a mail_box_compose_message.html in template/custom_template_name then you edit that file instead. In fact, if your custom template does not have one, then the proper thing to do is copy the one from base over to it and edit that instead. Doing it that way will keep dolphin updates from breaking your changes to the template code.

https://www.deanbassett.com
Quote · 7 Jan 2015

Hello Deano,
Thanks alot for all and your time to give me a solution.
Thanks again!!
Regards.

Quote · 7 Jan 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.