There is a lot of questions about this subject, but I can't really find anything usefull to my problem. I'm using the HTML5 cache manifest on a web app. The web app is made in wordpress and it's also made like a Native app on iPhone.
The problem is, that I would like to get the native app run when fly mode is enabled or you just don't have a connection to the internet. Right now I'm caching all the images, libaries and the php templates, and that works fine.
The problem is, that I would like it to cach or save the content of the pages. It would be possible and easy if all the pages was static HTML, but all my content is dynamic.
Anyone who knows a way to do this?
I'm using the Patrick Chia's wordpress plugin to make the cache manifest file.
Thanks!
Use caching for the pages and something like localStorage for the data. Then use Javascript to merge the two.
Related
I'm working on a project on localhost. Its kind of a company management application based on some php framework. Basically I'm a front-end developer and I've to fix some pages, their alignments and color scheme. I'm using firefox. Every single time when I've to change the settings of any page I've to go the php dev who built the app and they located file for me in the project, obviously they knew the file structure of the whole project. So is there any possible way, tool, addon or plugin that can identify the specific file (which is currently open in my browser) for me? so that I can reach the file on localhost directly and edit it right away rather than bothering the php developers all the time. Firefox inspect element can identify the css files though. Any help would be appreciated. Thanks
i'm wondering to generate cache pages of my website to avoid same queries again and again. there's almost 80% of queries fetching data that is almost not change able in near future (if cache system doesn't effected of its changing).
is there any good cache library or script which i should use? or is there any conditions to use cache system? Site pages are simple developed in html, js, css and no smarty template etc. please advise me in this regard. Thank you in advance.
Redis is popular caching framework. It is an open-source, networked, in-memory, key-value data store that can be used as a drop-in caching backend for your Drupal or WordPress website.
You can store data as key value in redis, so it is very easy to integrate in your application. For more information look Redis as a Caching Backend. It may be helpful to you.
I am making a web application with updates and content listing with PHP ad codes included in it.
How can I disable caching only for PHP ad codes?
After Searching a lot for this problem i found this
Simple Cache
This really worked like a charm, if anyone who got the same problem may use it :)
I'm trying to start a new project, and was looking for the "ultimate" package to kick-start off with for PHP/MySQL/HTML5 development. Tried CodeIgniter first, which was great. Then discovered Twitter Bootstrap, and integrated that in nicely. Finally, found HTML5 Boilerplate, which looked awesome, and saw that some people were putting together mixes of these three.
Was wondering if anyone has actually been able to put together and run an integration of all three well? I see there's a github repo for this: https://github.com/vesparny/codeigniter-html5boilerplate-twitter-bootstrap, but I couldn't find any StackOverflow inquiries on it. Anyone have some experience they could share before I jump in? Didn't want to spend days trying to figure it out, just to find out it would've been easier/better to just stick with pure CodeIgniter or just HTML5BP.
i'm the author of that library you've looking into. https://github.com/vesparny/codeigniter-html5boilerplate-twitter-bootstrap
Tw bootstrap and H5BP can be simply mixed together as you can see in my code;
Codeigniter is a great framework but lacks in view organization imho.
With this library you can take advantage of the best client side tools, and the most famous and simple php framework with some enhancement that would speed up and better organize your code and approach to code with codeigniter.
Seems like not many people try this I guess, but it DOES work, and it works fine as far as I can tell.
CodeIgniter works well as the php framework, and you can integrate the HTML5 BP to render your pages in a HTML5-friendly way, with a few javascript libraries like Initialzr's modernizer to help with loading resources. CodeIgniter is pretty fast, and there is pretty much zero conflict when combining CI with HTML5 BP, making it a pretty quick and painless addition.
Twitter Bootstrap works fine as well, since it's mainly CSS and javascript plugins for components, which you can merge with HTML5's plugins.js file if you want / need it. I'd say that after playing with this, Twitter Bootstrap isn't really necessary, but it does help you put together a responsive front-end pretty quickly. Not sure if there are other packages out there that might be better.
How do you want to run an installation of css and javascript file?
Take HTML5 Boilerplate and Twitter bootstrap files and copy them into your website root directory (directory where is your Codeigniter application folder located).
Now you can use them as any other javascript/html/css libraries and frameworks.
And I still don't know why are you trying to use Twitter Bootstrap with HTML5 Boilerplate. I am not using any of these but they look similar. It looks like a little overhead for your website.
I have a Hindi magazine website hosted on Joomla. Though helpful from publishing point of view the site was a maintenance nightmare. Joomla is so much susceptible to hacker attacks. My host will often shut down my site due to bots attacking my website. Recently I relaunched the site as a new Wordpress based site on a different name. The Joomla based website would therefore never be updated anymore. However, I do want to maintain the old content. I have used PHP but hardly am a power user.
I want to convert the files as plain HTML. I created a mirror of the website using HTTrack. But thanks to the fact that Joomla had variety of URLs for the same page (if you used a SEF URL plugin you would understand) the mirror is full of redundant content. Moreover I have repetitive HTML content (for header,footer,menu etc) in each page.
My questions are:
Which is a better option, create a static HTML site or PHP4.x pages (with Unicode content and having include PHP fragments for repetitive content)?
If latter is better should I use template system like Smarty? I am worried about caching since the content will hardly be updated I want caches to last forever.
Thanks for the help.
If the content is not going to change frequently I recommend using HTML files. They are static and hence faster.
However, if you are going to be updating content frequently, then you can either upgrade to the latest version of any popular CMS preferably joomla or drupal. I cite these two because they are actively developed and you can get a lot of support for them on the internet. Be sure to follow their security guide for hardening your installation.
If I were you I'd move everything over to WordPress since you have started using this. This way you will be maintaining a single website application keeping things better manageable in the long run.
You can copy the data out of Joomla using the Joomla administration interface. Or maybe even quicker using a database tool like MySQL Tools or Navicat which has a lot of export options.
Copying the HTML from Joomla using tools like HTTrack or TelePort Pro will result in lots of duplicate code and pages like you state.
Maintaining an extra PHP site just for the old content will be as much effort as getting everything into WordPress.
The "Static Content" project at: https://github.com/juliopontes/staticcontent does exactly what you are after although it looks like it may need to be updated for Joomla 3.5.