Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Theme Development: Disable Frontend Cache (Community Edition)

More
3 weeks 2 days ago #273488 by AdrianJean
Please help us help you and fill where relevant:
Your LimeSurvey version: Community Edition — 6.16.3+251215 
Own server or LimeSurvey hosting: Ubuntu 24.x
Survey theme/template: Custom
==================

Problem:
I am trying to develop a custom theme and need to disable the front-end cache as clicking the clear cache button in Global Settings takes too long during rapid development.

What I have tried:
- I've modified the
Code:
/application/config/config.php
 file, changing the setting
Code:
debug=1
which is supposed to disable caching, but doing so and clearing all caches and making css changes does not work.
- I've search the docs, but haven't found anything.
- I've searched these forums but only found the
Code:
debug=1
reco from many years ago.

I'm new to LimeSurvey as a platform (but not new to web dev) so maybe there is something more obvious I am missing, any help to make it easier to develop themes for this great platform would be appreciated.

Please Log in to join the conversation.

More
3 weeks 2 days ago #273489 by DenisChenu
Can you check HTML source ? It's still used asset link ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

More
3 weeks 2 days ago #273492 by AdrianJean
I should have added that this is happening in the "Preview Survey" mode - that might have an impact. I checked the source and it's loading the cached css and it's not the browser cache.

Please Log in to join the conversation.

More
3 weeks 1 day ago #273494 by DenisChenu

I should have added that this is happening in the "Preview Survey" mode - that might have an impact. I checked the source and it's loading the cached css and it's not the browser cache.
 
What is the link for css and js ? Include assets/[randomnumber] ? Can you send a screenshot ?

Pëase : be more clear in your explanation!

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

More
2 weeks 4 days ago - 2 weeks 4 days ago #273562 by AdrianJean
I did some additional testing.
Seem changes to the .twig files (HTML and twig code) seem to refresh ok.
However, any CSS changes seem to be cached, and require a clear from the Global Settings to see the changes.
Using dev tools, I can see that custom.css is being loaded from tmp/assets

 

Here is a series of screenshots that hopefully help explain what I am seeing.

 


 
Last edit: 2 weeks 4 days ago by AdrianJean.

Please Log in to join the conversation.

More
2 weeks 3 days ago #273574 by DenisChenu
>  Using dev tools, I can see that custom.css is being loaded from tmp/assets

Buit you show the screenshot after where file custom.css didn't include assets/randomnumber/

I don't understand here ?
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose